@use 'design-system' as *;

:global(:root) {
    --layout-grid-header-height: 32px;
}

.exampleWrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - var(--layout-grid-header-height));
    background-color: var(--color-bg-primary);

    #{$selector-darkmode} & {
        min-height: calc(100vh - var(--layout-grid-header-height) - 2px);
    }

    @media screen and (max-width: 720px) {
        :global(div.ag-theme-quartz),
        :global(div.ag-theme-quartz-dark) {
            --ag-font-size: 12px;
            --ag-grid-size: 6px;
        }
    }

    @media screen and (max-height: 720px) {
        min-height: 500px !important; // !important fix for darkmode specificity
        padding-bottom: $spacing-size-6;
    }
}

#{$selector-darkmode} .starIcon {
    -webkit-filter: invert(100%); /* safari 6.0 - 9.0 */
    filter: invert(100%);
}

.gridWrapper {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
}
